package com.gzsxy.esjy.feign.Auth;


import com.gzsxy.esjy.service.base.dto.response.DefaultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

//fallbackFactory是降级熔断工厂，异常统一进入对应的类
@FeignClient(value = "service-auth", fallbackFactory = AuthFallBack.class, fallback = AuthClientHystrix.class)
public interface AuthFeignService {

    /**
     * @param day 时间
     * @return
     * @description:  根据当天日期查看注册用户人数
     */
    @GetMapping(value = "/admin/user/getNumByUser")
    public DefaultResponse selectRegisterNumByDay(@RequestParam String day);
}
